var Vue = require('vue')
// var VueRouter = require('vue-router')
// var Vuex = require('vuex')


var App = require('./components/hello.vue')
// var main = require('./components/main.vue')


// Vue.use(VueRouter)



// var routes = [
//     { path: '/foo', component: main },
//     { path: '/bar', component: main }
// ]

// var router = new VueRouter({
//   routes // （缩写）相当于 routes: routes
// })

// var app = new Vue({
//   router,
//   data: {
//     mess: "123"
//   }
// }).$mount('#app')


// new Vue({
//   el: '#app',
//   render: h => h(main)
// })


var router = require('./router')

new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
